import Request from '@/utils/request.js'

/**
 * 获取风险点列表
 * @param {pageNo:当前页数，pageSize:显示条数，riskType:风险类型，1基础管理，2作业活动，3设备设施} params 
 * @returns 
 */
export const getRiskPointList = (params) => Request.get('/admin-api/biz/riskInfo/getRiskInfoPageMobile', params);
export const newgetRiskPointList = (params) => Request.post('/admin-api/biz/equipment-info/getScreenEquipmentInfo', params);

export const newgethdList = (params) => Request.post('/admin-api/biz/task-work/getScreenTaskWork', params);
export const jcgethdList = (params) => Request.post('/admin-api/biz/basic-manage/getScreenBasicManage', params);


/**
 * 获取危险源列表
 * @param {pageNo:当前页数，pageSize:显示条数，riskId:风险id} params 
 * @returns 
 */
export const getDangerSourceList = (params) => Request.get('/admin-api/biz/hazard-resource/getHazardResourcePageMobile', params);

export const newgetDangerSourceList = (params) => Request.post('/admin-api/biz/riskInfo/getCompanyRiskHazardControlPage', params);


/**
 * 获取管控措施列表
 * @param {pageNo:当前页数，pageSize:显示条数，hazardSourceId:危险源id} params 
 * @returns 
 */
export const getControlMeasuresList = (params) => Request.get('/admin-api/biz/control-measures/getControlMeasuresPageMobile', params);

/**
 * 根据管控措施ID查询排查记录
 * @param {pageNo:页数, pageSize:条数, controlId:管控措施Id} params 
 * @returns 
 */
export const queryRecordsAccordingToTheControlMeasureId = (params) => Request.get('/admin-api/biz/ht-plan-detail/checkResultPage', params);
export const newqueryRecordsAccordingToTheControlMeasureId = (params) => Request.get('/admin-api/biz/ht-plan-exe-summary/checkResultPage', params);

/**
 * 风险管控统计柱状图
 * @param {*} params 
 * @returns 
 */
export const getRiskControlStatisticalColumnicChart = () => Request.get('/admin-api/biz/riskInfo/getHazardGroupByRiskLevel');

/**
 * 根据部门ID获得岗位列表
 * @param {deptId: 部门Id} params 
 * @returns 
 */
export const accordingToTheDepartmentObtainingThePositionList = (params) => Request.get('/admin-api/biz/responsibility/getResponsibilityByDeptId', params);

// 排查计划
export const getRiskControlPlant = (params) => Request.get('/admin-api/biz/ht-plan-summary/page', params);

